package com.bankcoder.listener;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.bankcoder.entity.CheckHostReview;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class CheckHostReviewListener<T> extends AnalysisEventListener<CheckHostReview> {


    List<CheckHostReview> hostReviews=new ArrayList<CheckHostReview>();

    @Override
    public void invoke(CheckHostReview checkHostReview, AnalysisContext analysisContext) {
        hostReviews.add(checkHostReview);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {
        System.out.println("可以利用这里作为一个钩子函数，显示当前的执行进度");

    }

    public List<CheckHostReview> getHostReviews() {
        return hostReviews;
    }

    public void setHostReviews(List<CheckHostReview> hostReviews) {
        this.hostReviews = hostReviews;
    }
}
